SOURCE = $(wildcard *.o)
ADDED = -ldl -lslog -g
MAIN = Juzthread.so
MVSOPATH = ../../build/plugin/

define cmd_finshyes
if [  -d $(MVSOPATH) ]; then \
    cp *.so $(MVSOPATH); \
fi
endef

$(MAIN):$(SOURCE)
	g++ -shared -o $(MAIN) $(SOURCE) $(ADDED)
	$(cmd_finshyes)
	@echo 程序合成成功！